package com.yangtao.dao;

import java.util.List;    
import java.util.Map;    
    
import com.yangtao.dto.User;    
import org.apache.ibatis.annotations.Param;  

public interface IUserDao {    
        
    public User queryByPrimaryKey(Integer id);
    
    public User findUserById(int id);
        
    public List<User> queryUserByBatch(Map<String,Object> params);    
        
    public void insertUser(User user);    
        
    public void insertUserByBatch(List<User> list);    
        
    public void deleteByPrimaryKey(Integer id);    
        
    public void delteUserByBatch(Map<String,Object> params);    
        
    public void updateByPrimaryKey(Integer id);    
    
   public  boolean updateUser(User user);

   public  boolean deleteUser(int id);
    
    public List<User> getAllUser();    
    
    public User findUserByNameAndPwd(@Param("name")String name, @Param("password")String password);
        
}    